package com.crrcdt.controller;

import com.crrcdt.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 神瑛侍者 on 2020/8/28.
 * @version 1.0
 */
@RestController
@RequestMapping("/user")
@Api(value = "用户模块管理", description = "用户模块管理")
public class UserController {
    @Autowired
    UserService userService;
    @ApiOperation(value = "用户模块管理--调用注册中心的服务，得到一张票")
    @GetMapping("/getTicket")
    public String getTicket(){
        return userService.buyTicket();
    }
}
